package com.yzy.fly.entity.role;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@TableName(value = "fly_process_node", autoResultMap = true)
public class FlyProcessNode implements Serializable {

    @TableId(type = IdType.INPUT)
    private String id;
    private String label;
    private String name;
    private String type;
    @TableField(value = "`left`")
    private String left;
    @TableField(value = "`top`")
    private String top;
    private String icon;
    private String state;
    private boolean viewOnly = false;
    private Integer processId;
    private Integer systemId;
    private Date createTime;
    private Date updateTime;

    private Integer businessId;
    private String businessType;
    @TableField(value = "business",typeHandler = FastjsonTypeHandler.class)
    private JSONObject business = new JSONObject();

}
